﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BTCairo
{
    public abstract class CommonGraphics
    {
        private System.Drawing.Graphics g;
        public System.Drawing.Graphics myGraphic
        {
            get { return g; }
            set { g = value; }
        }

        private InfoGraphic info;
        public InfoGraphic MyInfoGraphic
        {
            get
            {
                return info;
            }
            set
            {
                info = value;
            }
        }


        virtual public CommonGraphics CloneCommonGraphic()
        {
            return null;
        }

        virtual public void SetInfoGraphic(InfoGraphic info)
        {
        }

        public virtual void DrawLine(double x1, double y1, double x2, double y2)
        {
        }

        public virtual void DrawRect(double x, double y, double width, double height)
        {
        }

        public virtual void DrawEllipse(double x, double y, double width, double height)
        {
        }

        public virtual void DrawText(string text, int size, int x, int y)
        {
        }

        //public virtual CommonGraphics(CommonGraphics comGra)
        //{
        //}
    }
}
